import axios from 'axios'

const apiClient = axios.create({
  baseURL: 'http://localhost:8000/api',
  withCredentials: false,
  headers: {
    Accept: 'application/json',
    'Content-Type': 'application/json'
  }
})

export default {
  getBlogPosts() {
    return apiClient.get('/blog/')
  },
  getBlogPost(id) {
    return apiClient.get(`/blog/${id}/`)
  },
  getProjects() {
    return apiClient.get('/projects/')
  }
}
